<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<f:view>
	<body>
		<ui:composition template="/templates/template.xhtml">
			<ui:define name="title">Login</ui:define>

			<ui:define name="body">
				
				<h:form id="loginForm" prependId="false">
					<rich:panel id="panel" style=" width:80% ; margin:auto ">
						<f:facet name="header">
							<h:outputText value="Login" />
						</f:facet>
						<h:panelGrid columns="2" style="width:50%">
							<h:outputLabel for="j_username" value="#{msg['login.usernameLabel']}" />
							<h:inputText id="j_username" required="true" requiredMessage="#{msg['login.username.empty']}" />
							<h:outputLabel for="j_password" value="#{msg['login.passwordLabel']}" />
							<h:inputSecret id="j_password" required="true" requiredMessage="#{msg['login.password.empty']}" />
							<h:outputLabel value="" />
							<h:commandButton type="submit" id="submit" value="#{msg['login.submitLabel']}" 	action="#{loginBean.doLogin}" />
						</h:panelGrid>
						<h:messages />
					</rich:panel>
				</h:form>
			</ui:define>
		</ui:composition>
	</body>
</f:view>
</html>



